Passed
Push — master ( 967bc6...fd5993 )
by Vinicius
02:44
created

router-support.test.js ➔ ... ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
import VuePageTitle from '../src/index'
2
3
import { createLocalVue } from '@vue/test-utils'
4
import test from 'ava'
5
6
test('setup', t => {
7
  t.plan(1)
8
  const localVue = createLocalVue()
9
  const router = {
10
    afterEach: fn => {
11
      const to = {
12
        meta: {
13
          title: 'Graal'
14
        }
15
      }
16
17
      fn(to)
18
      fn({}) // for covarage purposes
19
20
      t.is(localVue.prototype.$title, 'Graal')
21
    }
22
  }
23
24
  localVue.use(VuePageTitle, { router })
25
})
26